package com.social.dao;

import com.social.pojo.Organization;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrganizationMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Organization record);

    int insertSelective(Organization record);

    Organization selectByPrimaryKey(Integer id);

    List<Organization> selectAll(@Param("page") Integer page,@Param("pageNum") Integer pageNum);

    int selectAllCount();

    Organization selectByUsername(String departmentName);

    int updateByPrimaryKeySelective(Organization record);

    int updateByPrimaryKey(Organization record);
}